package net.dntuan.training.mvc.manager;

import java.util.List;

import net.dntuan.training.mvc.domain.City;

public interface CityManager {
    public City findOne(Long id);

    public List<City> findAll();

    public void save(City city);

    public void update(City city);

    public void delete(Long id);

    /**
     * all parameters are not required to be not-null
     * 
     * @param cityName
     * @param country
     * @param minPop
     * @param maxPop
     * @return
     */
    public List<City> search(String cityName, String country, Integer minPop, Integer maxPop);
}
